<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="format-detection" content="telephone=no" />
    <title>智慧团建系统首页</title>
    <link rel="icon" href="favicon.ico" mce_href="favicon.ico" type="image/x-icon">
	<link rel="shortcut icon" href="favicon.ico" mce_href="favicon.ico" type="image/x-icon">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=IE8" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<meta http-equiv="Expires" content="0">
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="Cache" content="no-cache">
	<meta http-equiv="kiben" content="no-cache">
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
	<!-- css -->
	<link rel="stylesheet" href="asset/outdatedbrowser/outdatedbrowser.min.css">
    <link rel="stylesheet" type="text/css"  href="asset/css/comm.css" />
	<link type="text/css" rel="stylesheet" charset="utf-8" href="asset/bootstrap/css/bootstrap.css">
	<link type="text/css" rel="stylesheet" charset="utf-8" href="asset/css/cys.css">
	<style type="text/css">
		@charset "UTF-8";

		.ng-cloak,
		.x-ng-cloak,
		.ng-hide {
			display: none !important;
		}

		ng:form {
			display: block;
		}

		.ng-animate-block-transitions {
			transition: 0s all !important;
			-webkit-transition: 0s all !important;
		}

		.ng-hide-add-active, .ng-hide-remove {
			display: block !important;
		}
		.btn .caret {
		    margin-left: -5px;
		}
	</style>
</head>
<body class="qm_bgcolor">
    <div class="header">
     	<div class="inner_line">
	         <div class="header-logo">
	             <a href="index.html"><img ng-src="{{toUrl('root/asset/images/home/dnlogo.png')}}" class="logo" /></a>
	             <a href="javascript:;" class="qmtit">智慧团建系统</a>
	         </div>
	         <span ng-controller="LoginCtrl as ctrl">
	         	<div class="header-wel">
		          	<div class="header-role btn-group ng-cloak" ng-if="$currentUserInfo[1].length>1">
						<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
							切换角色
							<span class="caret"></span>
						</button>
						<ul class="dropdown-menu">
							<li ng-repeat="role in $currentUserInfo[1]" ng-click=switchRole(role)>
								<a href="javascript:;">{{role.label}}</a>
							</li>
						</ul>
					</div>
					<a href="javascript:;" class="ng-cloak white-link remove-underline" ng-click="ctrl.switchLogin()" ng-show="$user.type==-1">
		          		<em class="qm_logini"></em>
		          		<span style="line-height: 30px;color: #fff;">请登录</span>
		          	</a>
		          	<a href="javascript:;" class="ng-cloak white-link remove-underline" ng-click="ctrl.switchLogin()" ng-show="$user.type!=-1">
		          		<em class="qm_logini"></em>
		          		<span style="line-height: 30px;color: #fff;">欢迎您：{{$user.name}}【退出系统】</span>
		          	</a>
				</div>
	         </span>
	     </div>
 	</div>
	
	<div ui-view class="index-main">
		<!-- Main jumbotron for a primary marketing message or call to action -->
	</div>

	<div class="qm_footer">
		<p>版权所有©共青团东南大学委员会   © 2017 Southeast University . All rights reserved</p>
	</di
 
 	<!-- js -->
    <script src="asset/outdatedbrowser/outdatedbrowser.js"></script>
    <script type="text/javascript" src="asset/chart/echarts.min.js"></script>
    <script type="text/javascript" data-main="asset/main.js" src="asset/js/require.min.js"></script>
    <script type="text/javascript" src="asset/jquery/jquery.js"></script>
    <script type="text/javascript" src="asset/js/comm.js"></script>
    <script type="text/javascript" src="asset/js/banner.js"></script>
    <!-- <script type="text/javascript" src="asset/js/include.js"></script> -->
    <script type="text/javascript">
        $(window).resize(function(){
            var ht=$(".banner-right ul li img").height();
            var htt=$(".twobanner>img").height()+8;
            $(".index-zy").height(2*ht-htt);
            $(".index-more").height(ht);
        });


      	$(document).ready(function() {
	       	/* $("#index_Marx").click(function(e) {
	        	e.stopPropagation();
	        	$("div.con").removeClass("hide");
	        }); */

			$("div.close").click(function(e) {
	       		e.stopPropagation();
	        	$("div.con").addClass("hide");
	        });
	
	    	$(document).click(function() {
		        if (!$("div.con").hasClass("hide")) {
		            $("div.con").addClass("hide");
		        }
	    	});
		});
      	
      	function TzggListCtrl($injector,$scope, $element, $http,$state,CtrlUtil){
      		var ctrl = this;
      		this.queryNew = function () {
				ctrl.entities && (ctrl.entities.content = {})
				var p = CtrlUtil.getQueryParams(ctrl)
				p.fbzt = 1;
				p.pageSize = 5;
				$http.post(':root/tzgggl/list', p).success(function (r) {
					ctrl.entities = r;
				})
			}
      		
      		this.preview = function (item) {
				//$state.go('app.newsview',{id:item.id});//
				var url = 'newsview.html?id='+item.id;
				//location.href = url;
				window.open(url);
			}
      		
      		this.newslist = function (){
      			var url = 'newslist.html';
      			location.href = url;
      			//window.open(url);
      		}
      	}
    </script>   
</body>
</html>
